/**
 * 报关单表格样式 - 模仿原始报关单样式
 */

.customs-card .ant-card-head {
  background-color: #f5f5f5;
  font-weight: bold;
  border-bottom: 2px solid #000;
}

.customs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000;
  font-size: 13px;
}

.customs-table td {
  border: 1px solid #000;
  padding: 6px 10px;
  line-height: 1.6;
}

.customs-table .field-label {
  background-color: #f9f9f9;
  font-weight: bold;
  text-align: left;
  width: 140px;
  vertical-align: middle;
}

.customs-table .field-value {
  background-color: #fff;
  text-align: left;
  vertical-align: middle;
  position: relative;
  min-height: 30px;
}

.customs-table .field-value:hover {
  background-color: #fafafa;
}

.customs-table .field-value .ant-input {
  border: 1px dashed #1890ff;
}

/* 结果表格容器 */
.result-table-container {
  background: #fff;
  padding: 24px;
  border-radius: 4px;
}

/* 商品明细表格样式 */
.customs-card .ant-table-thead > tr > th {
  background-color: #f5f5f5;
  font-weight: bold;
  border: 1px solid #000;
  padding: 8px;
  font-size: 12px;
}

.customs-card .ant-table-tbody > tr > td {
  border: 1px solid #d9d9d9;
  padding: 6px 8px;
  font-size: 12px;
}

.customs-card .ant-table-tbody > tr:hover > td {
  background-color: #f0f8ff;
}

/* 编辑图标样式 */
.field-value .anticon-edit {
  opacity: 0;
  transition: opacity 0.3s;
}

.field-value:hover .anticon-edit {
  opacity: 1;
}

/* 状态图标 */
.field-label .anticon {
  font-size: 12px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .customs-table {
    font-size: 11px;
  }

  .customs-table td {
    padding: 4px 6px;
  }

  .customs-table .field-label {
    width: 100px;
  }
}

/* 打印样式 */
@media print {
  .result-table-container {
    padding: 0;
  }

  .customs-table .field-value .anticon-edit {
    display: none;
  }
}

